/* common function to simulate wide container */
(function($) {
	$.fn.containerSimulator = function(options) {
		
		var options = $.extend( {
			destory: false,
			document_height: $(document).height(),
			header_height: $("div.container > #header").height(),
			content_margin_top: parseFloat($("div.container > #content").css('margin-top')),
			center_content_height: $(".center-content").height()
		}, options);
		
		if (options.destory == false) {
			var margin_top = - (options.document_height - options.header_height - options.content_margin_top);
			var height = options.center_content_height;
			
			$("div#containerSimulator").css({ 'display': 'block', 'margin-top': margin_top, 'height': height });
		} else {
			$("div#containerSimulator").css({ 'display': 'none' });
		}
	};
	
})(jQuery);